package com.alliky.core.base

import androidx.annotation.MainThread
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import java.util.concurrent.atomic.AtomicBoolean

/**
 * ================================================
 * @Description: 描述
 * @Author: wxianing
 * @Date: 2022/11/4 9:49
 * ================================================
 */
open class SingleLiveData<T> : MutableLiveData<T>() {

    private val mPending = AtomicBoolean(false)

    companion object {
        private const val TAG = "SingleLiveData"
    }


    @MainThread
    override fun observe(owner: LifecycleOwner, observer: Observer<in T>) {

        super.observe(owner, observer)
    }
}